
import './assets/base.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import {useCounterStore} from './stores/counter'

import App from './App.vue'
import router from './router'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-ui/lib/theme-chalk/index.css';
import zhCn from 'element-plus/es/locale/lang/zh-cn'//ElementPlus中文语言包


import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
  
app.use(ElementPlus, { locale: zhCn })
// 在需要的地方使用 store
//在需要使用 store 的地方，通过 const counterStore = useCounterStore() 来获取 store 实例。
// 创建并使用 Pinia
const pinia = createPinia()
app.use(pinia)

app.use(router)

app.mount('#app')
